{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol">  
                    	{vfriend_navi id=$AppUI->id}                	
                    </div>
                    <div class="rightCol">
                        <div class="midCol">
                        	<div class="boxDetail">
                                <div class="headerTitle">
                                    <h3><a href="{$refer}" onclick="history.go(-1); return false;" class="bBack"><strong>Quay lại</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{blog_username userid=$row.userid}">Nhật ký của <strong>{$row.fullname}</strong></a></h3>
                               	</div>
                                <div class="detailItem">
                                	{if $row.image}
                                    	<div class="img">
                                        	{image path=$row.image type=3}
                                       	</div>
                                    {/if}
                                    <h3>{$row.title}</h3>
                                    <div class="content">
                                    	{$row.content}
                                        {if $row.linkmusic != ''}
                                        	{$row.linkmusic}
                                        {/if}
                                    </div>
                                    <div class="stat">
                                    	<span class="date">Viết vào lúc {$row.postdate|date_format:"%H:%M"} ngày {$row.postdate|date_format:"%d-%m-%Y"}</span>
                                        <span class="bLike"><a href="{if $AppUI->id > 0}javascript:likeBlog({$row.blogid});{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Thích</a> (<strong id="bd{$row.blogid}">{$row.tlike|number_format}</strong>)</span>
                                        {if $AppUI->id == $row.userid && $AppUI->id > 0}
                                            <span class="iEdit"><a href="{$smarty.const.LINK_BLOG_EDIT}?blogid={$row.blogid}&amp;uid={$row.hexuserid}">Sửa</a></span>
                                            <span class="iDelete"><a href="javascript:deleteBlog({$row.blogid},'{$refer}');">Xóa</a></span>
                                        {else}
                                        	{if $row.status != 2}
                                            	<span class="iReport"><a href="{if $AppUI->id > 0}javascript:report(0,{$row.blogid},1);{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Báo vi phạm</a></span>                                       	
                                            {/if}
                                      	{/if}
                                    </div>
                                </div>
                            </div>
                            {if $row.acmt || ($row.acmt==0 && $intTotal > 0) }
                                <div class="boxBlogComment">
                                    <div class="headerTitle">
                                        <h3>Bình luận&nbsp;(<span id="sTotal">{$intTotal}</span>)</h3>
                                    </div>
                                    <div class="blogCommentItem" id="sComment">                                	
                                        {include file="blog/box-comment.tpl"}
                                    </div>
                                    {if $row.acmt && $AppUI->id > 0}
                                        <div class="blogCommentInput" id="formCmt">
                                            <form method="post" name="frmComment" id="frmComment" action="">
                                                <input type="hidden" name="pblogid" id="pblogid" value="{$row.blogid}" />
                                                {comment name="pcontent" default="Viết bình luận"}
                                            </form>
                                        </div>
                                        <div id="loading" class="blogLoading">
                                            <p align="center"><img src="{$smarty.const.HOST_STATICS}img/bg/loading-bar.gif" alt="loading" width="88" height="7" border="0" /></p>
                                            <p>&nbsp;</p>
                                            <p align="center">Vui lòng chờ trong giây lát.</p>
                                            <p>&nbsp;</p>
                                        </div>
                                    {/if}
                                </div>                            
                        	{/if}
                        </div>
                       	<div class="extCol">
                        	{include file="blog/box-top.tpl"}
                            {include file="blog/box-relation.tpl"}
                        </div>                        
                   	</div>
               	</div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}